Skip to content

Conversation

@utas-raymondng
Copy link
Collaborator

@utas-raymondng utas-raymondng commented Nov 27, 2024

Fix a bug with the introduction of BBOX where it didn't handle BBOX cross meridian that is cross -180 <> 180, in short the box have value say -203 etc

The generated elastic search should contains two box with a should operation with two geo_bounding_box

POST /es-indexer-edge/_search?typed_keys=true {"_source":{"includes":["id","summaries.proj:geometry_noland"]},"min_score":0.0,"query":{"bool":{"filter":[{"bool":{"should":[{"geo_bounding_box":{"summaries.proj:geometry":{"top_left":{"lat":-1.2075604055520772,"lon":-180.0},"bottom_right":{"lat":-41.02344382778737,"lon":-149.42177465105033}}}},{"geo_bounding_box":{"summaries.proj:geometry":{"top_left":{"lat":-1.2075604055520772,"lon":149.75791284895058},"bottom_right":{"lat":-41.02344382778737,"lon":180.0}}}}]}}],"must":[{"match_all":{}}]}},"search_after":["bc1b3741-e75c-5039-e044-00144f7bc0f4","bc1b3741-e75c-5039-e044-00144f7bc0f4"],"size":2200,"sort":[{"id.keyword":{"order":"asc"}},{"id.keyword":{"order":"asc"}}]}

Copy link
Contributor

@HavierD HavierD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@utas-raymondng utas-raymondng merged commit d8444e8 into main Nov 27, 2024
2 checks passed
@utas-raymondng utas-raymondng deleted the bugs/6119-cql-box-large-lat branch November 27, 2024 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants